EventClass(id = "1001", event = Event.RESCHEDULE) .let { jacksonObjectMapper().writeValueAsString(it) } .let { System.out.println(it) }